import request from '@/utils/request'
// 字典业务类型
export function listWorkType(query) {
  return request({
    url: '/system/dict/type/list',
    method: 'get',
    params: query
  })
}
//业务类型子类
export function childWorkType(query) {
  return request({
    url: '/system/dict/data/list',
    method: 'get',
    params: query
  })
}

// 查询单据编号列表
export function listCode(query) {
  return request({
    url: '/system/code/list',
    method: 'get',
    params: query
  })
}

// 新增单据编号
export function addCode(data) {
  return request({
    url: '/system/code',
    method: 'post',
    data: data
  })
}

// 修改单据编号
export function updateCode(data) {
  return request({
    url: '/system/code',
    method: 'put',
    data: data
  })
}

// 删除单据编号
export function delCode(codeId) {
  return request({
    url: '/system/code/' +codeId,
    method: 'delete'
  })
}

